<?php
namespace app\admin\controller;


use think\Controller;

/**
 * Class Alipay
 * @package app\admin\controller
 * 处理阿里云回调信息
 */
class Alipay extends Controller
{
    public function callback()
    {
        $get = json_encode(input('get.'));
        $post = json_encode(input('post.'));
        $file_path = RUNTIME_PATH . 'callback/callback.log';
        file_put_contents($file_path, date('Y-m-d H:i:s') . "\n" . $get ."\n".$post ."\n------------------------\n", FILE_APPEND);
    }
}